package com.graduation.springbootinit.model.dto.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel(description = "商品查询请求")
public class ProductQueryRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("当前页码")
    private long current = 1;

    @ApiModelProperty("每页显示条数")
    private long pageSize = 10;

    @ApiModelProperty("搜索关键词（商品名称或描述）")
    private String keyword;

    @ApiModelProperty("分类ID")
    private Integer categoryId;

    @ApiModelProperty(value = "排序字段", example = "price/sales")
    private String sortField;

    @ApiModelProperty(value = "排序方式", example = "asc/desc")
    private String sortOrder;

    @ApiModelProperty("最低价格")
    private BigDecimal minPrice;

    @ApiModelProperty("最高价格")
    private BigDecimal maxPrice;
} 